Builder

constructor(@Nullable icon: IconCompat, @Nullable title: CharSequence, @Nullable intent: PendingIntent)(source)

Construct a new builder for Action object.

Note: For devices running an Android version strictly lower than API level 23 this constructor only supports resource-ID based IconCompat objects.

Parameters

icon

icon to show for this action

title

the title of the action

intent

the PendingIntent to fire when users trigger this action


constructor(icon: Int, @Nullable title: CharSequence, @Nullable intent: PendingIntent)(source)

Construct a new builder for Action object.

Parameters

icon

icon to show for this action

title

the title of the action

intent

the PendingIntent to fire when users trigger this action


constructor(@NonNull action: NotificationCompat.Action)(source)

Construct a new builder for Action object using the fields from an Action.

Parameters

action

the action to read fields from.